#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
	////////////////
	char expr[64];
	uint32_t value;
	
	///////////////

	struct watchpoint *next;
	/* TODO: Add more members if necessary */


} WP;

WP* new_wp();
void free_wp(int n);
void init_wp_pool();
void print_wp();
int check_wp(int *oldvalue, int *newvalue, char *myexpr);

#endif
